// FLVAudioParser.h: interface for the CFLVAudioParser class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_FLVAUDIOPARSER_H__1E0FC9AD_38A0_404A_B673_77396EDF51EC__INCLUDED_)
#define AFX_FLVAUDIOPARSER_H__1E0FC9AD_38A0_404A_B673_77396EDF51EC__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "FLVDefine.h"

class CFLVAudioParser  
{
public:
	CFLVAudioParser();
	virtual ~CFLVAudioParser();

public:
	void SetCallback(FLVParserCallBackFunc* pCallback, LPVOID lpParam = NULL);
	bool Parse(uint32_t PTS, uint8_t* pData, int nLen);

private:
	void Output(uint32_t PTS, uint8_t* pData, int nLen);
	
private:
	FLVParserCallBackFunc*	m_pCallback;
	LPVOID	m_lpParam;

	uint32_t _aacProfile;
	uint32_t _sampleRateIndex;
	uint32_t _channelConfig;
};

#endif // !defined(AFX_FLVAUDIOPARSER_H__1E0FC9AD_38A0_404A_B673_77396EDF51EC__INCLUDED_)
